package com.bruce.demo2.patterns.demo1.creational.demo02.factoryMethod.demo4;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 咖啡类
 * @AUTHOR CNBruceLee
 * @DATE 2021/7/10 17:20
 */
public abstract class Coffee {
    //抽象方法获取咖啡名称
    public abstract String getName();

    //加奶
    public void addMilk() {
        System.out.println("加奶");
    }

    //加糖
    public void addSugar() {
        System.out.println("加糖");
    }
}
